package com.xkdx.guangguang.fragment.comment;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class ShopCommentAction extends AbsAction {
	String userID, shopID, content, loginToken;

	public ShopCommentAction(String userID, String shopID, String loginToken, String content) {
		this.userID = userID;
		this.shopID = shopID;
		this.content = content;
		this.loginToken = loginToken;

	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("DeviceID", "2");
		map.put("UserID", userID);
		map.put("LoginToken", loginToken);
		map.put("ShopID", shopID);
		map.put("Content", content);
		String json = constructJson(map);
		Parameter parameter = new Parameter("commentInterface", "commentOnShop", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
